package com.medical.patient.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.medical.patient.controller.vo.ReceptionVo;
import com.medical.patient.entity.PatientMedicalRecordEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.patient.vo.DiagnosemanagementVo;
import com.medical.patient.vo.DiagnosemanagementparticularsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-08-13 18:42:36
 */
@Mapper
public interface PatientMedicalRecordDao extends BaseMapper<PatientMedicalRecordEntity> {

    List<PatientMedicalRecordEntity> getByUserId(String userId);

    List<PatientMedicalRecordEntity> getByDoctorId(String doctorId);

    List<PatientMedicalRecordEntity> patientMedicalRecordEntityByUserId(String userId);

    List<PatientMedicalRecordEntity> patientMedicalRecordEntityByDoctorId(Integer doctorId);

    Page<ReceptionVo> ReceptionList(Page<ReceptionVo> receptionVoPage, @Param("vo") ReceptionVo vo);

    PatientMedicalRecordEntity diagnosticReport(Integer recordId);

    List<DiagnosemanagementVo> diagnosemanagementList(DiagnosemanagementVo vo, Integer doctorId);

    List<DiagnosemanagementparticularsVo> diagnosemanagementparticularsList(DiagnosemanagementparticularsVo vo, Integer doctorId, String time);
}
